package com.bw.bargain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.bargain.dao.CutRecordDao;
import com.bw.bargain.entity.CutRecordEntity;
import com.bw.bargain.service.CutRecordService;


@Service("cutRecordService")
public class CutRecordServiceImpl extends ServiceImpl<CutRecordDao, CutRecordEntity> implements CutRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CutRecordEntity> page = this.page(
                new Query<CutRecordEntity>().getPage(params),
                new QueryWrapper<CutRecordEntity>()
        );

        return new PageUtils(page);
    }

}